class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}
		"/nextgen"(controller:"rest", parseRequest:true){
			action = [GET:"list", POST:"updateFacts"]
		} 
		
		"/nextgen/json"(controller:"rest", parseRequest:true){
			action = [GET:"listJson"]
		} 
		
		"/nextgen/rdf/json"(controller:"rest"){
			action = [GET:"produceRdfJson"]
		} 
		"/nextgen/rdf/nt"(controller:"rest"){
			action = [GET:"produceRdfNt"]
		}
		
		"/nextgen/from"(controller:"rest", parseRequest:true) {
			action= [GET:"showFrom", DELETE:"deleteFrom"]
		}
		"/nextgen/to"(controller:"rest", parseRequest:true) {
			action= [GET:"showTo", DELETE:"deleteTo"]
		}
		
		"/"(view:"/index")
		"500"(view:'/error')
	}
}
